<%-- 
    Document   : EditProductProcess
    Created on : Mar 30, 2012, 3:04:35 PM
    Author     : Tokino
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%!
%>



<jsp:useBean id="formEditProduct" class="servlets.EditProduct" scope="request">
    <jsp:setProperty name="formEditProduct" property="*"/>
</jsp:useBean>  
<jsp:useBean id="SecprogScopeSession" class=
             "servlets.SecprogScopeSession" scope="session" />

<%
formEditProduct.setAccounttype(SecprogScopeSession.getAccounttype());
    if (formEditProduct.eproduct(SecprogScopeSession.getUserName())) {
        
        
     SecprogScopeSession.setStatus(formEditProduct.getErrorMsg("status"));
     SecprogScopeSession.setTitle(formEditProduct.getTitle());
     SecprogScopeSession.setCategory(formEditProduct.getCategory());
     SecprogScopeSession.setMtype(formEditProduct.getMtype());
     SecprogScopeSession.setSynopsis(formEditProduct.getSynopsis());
     SecprogScopeSession.setAddinfo(formEditProduct.getAddinfo());
     SecprogScopeSession.setPrice(formEditProduct.getPrice());
     
%>
<jsp:forward page="REdit.jsp"/>
<%} else {
%>
<jsp:forward page="EditProduct.jsp"/>
<%    }
%>
